Skip to main content

All Questions

Tagged with
2votes
1answer
176views

Getting all column vs. table regardless of alias using JSqlParser

I have been trying to get all column vs. table regardless of alias used, for example, assume this query ...
srilakshmikanthanp's user avatar
6votes
1answer
334views

Simple XML string to user-friendly plain text converter method in Java

I want to write a simple method in Java to convert XML to some user-friendly plain format (like YAML, etc.). Attributes, null, empty or zero values should not be taken into account. Also, documents ...
Tobias Grothe's user avatar
6votes
4answers
894views

Very simple CSV-parser in Java

Please take a look at my method for parsing a CSV string. I am looking for a simple approach without using an external library. Is throwing a RuntimeException ...
Tobias Grothe's user avatar
3votes
1answer
223views

Parsing Java's class file

The structure of a class file consists of a single structure (presented here using pseudostructures written in a C-like structure notation): ...
Madagascar's user avatar
2votes
1answer
55views

Parsing one UserData type to a preview

I am currently developing a web app and am using Spring as a Backend. I have some user data that is provided by one of our services and I need to display it in my frontend. The subject of the code ...
monamona's user avatar
0votes
1answer
106views

Retrieve data from an XML file in Java

few months back I did a code test for a company and I quickly managed to solve it within 5-10 minutes. But, I got rejected because it wasnt "good enough". What is good enough? they said its ...
Con101's user avatar
2votes
2answers
629views

Parse a text file, and map to an out-of-scope POJO

I need to parse a file, with a standard formatting: ...
Maxime's user avatar
1vote
2answers
176views

Parse string using character value for Unicode characters

I added the getCValue method to reduce the cyclomatic complexity, but the cyclomatic complexity still persists. How can I reduce it? Can I change this code using ...
stromboli's user avatar
3votes
1answer
169views

Processing a binary file with buffer length tags

I am trying to process a very large binary file using MappedByteBuffer from java.nio package. This is how the data looks like in the file: ...
SuhasG's user avatar
1vote
2answers
212views

Function to read a file until next token

I've got this function which reads an entry until the next starting Token determined through a function, as the nature of the token is flexible. Usage: ...
Eldros's user avatar
3votes
0answers
123views

Mini Scheme interpreter

Right now, I'm working on an interpreter for a subset of the Scheme programming language. It supports lambdas, let/let*/letrec, procedures, combinations, ...
TheSinisterStone's user avatar
0votes
2answers
1kviews

Good practices for parsing this text file

I have the following .txt file structure that i want to parse in Java(8): ...
singh raj's user avatar
1vote
2answers
232views

Parsing words from string

I am learning Java, so I am beginner. I know I can do this with split function but I want to improve my algorithm knowledge. I will be glad if you help me. Thanks. inputStr variable is contains the ...
Mestedepsu's user avatar
0votes
2answers
136views

Parse file and make output in custom List [closed]

I have a file output like this and want to do parsing and put the output into a List. The biggest problem here is the name of a wake-lock which appears after ID and runtime, in some cases, it contains ...
Danijel Markov's user avatar
2votes
2answers
217views

Message encode/decode library

I write protocol messages encoder/decoder for my project. All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body. There are two types of messages: Plain message - ...
bw_dev's user avatar

153050per page
close